package group32.client;

import java.util.ArrayList;
import java.util.List;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import group32.client.FriendService;
import group32.client.FriendServiceAsync;
import group32.shared.User;

/**
 * The client side stub for the RPC service.
 */
@RemoteServiceRelativePath("friend")
public interface FriendService extends RemoteService {
	public static class Util {
		private static FriendServiceAsync instance;
		public static FriendServiceAsync getInstance(){
			if (instance == null) {
				instance = GWT.create(FriendService.class);
			}
			return instance;
		}
	}
	public ArrayList<String> getRelation(int userID) throws IllegalArgumentException;
	//public int getfriendID(int userID) throws IllegalArgumentException;
	public void insertnewfriend(int uid,String name, int fid) throws IllegalArgumentException;
}